package com.xinminda.dcf.ui.personal.model;

import com.xinminda.dcf.api.ApiManage;
import com.xinminda.dcf.base.baserx.RxHelper;
import com.xinminda.dcf.bean.UserBean;
import com.xinminda.dcf.ui.personal.contract.LoginContract;
import rx.Observable;

public class LoginModel implements LoginContract.Model{

    @Override
    public Observable<UserBean> getLoginData(String header, String params) {
        return ApiManage.getInstence().getApiService().login(header,params)
                .compose(RxHelper.<UserBean>handleResult());
    }
}
